
build: gen
	$(CC) allinone.c -Wall -Wextra -o musicmenu

# 将 merged_tracks.txt 转为 C 头文件，数组名设为 merged_tracks_data，长度为 merged_tracks_len
gen:
	xxd -i merged_tracks.txt > merged_tracks.h

install: build
	install -Dm 755 ./musicmenu /usr/local/bin/musicmenu

uninstall:
	rm /usr/local/bin/musicmenu

crontab-autoremove-deploy:
	-mkdir ~/.local/bin
	cp clean-chillhop-cache.sh ~/.local/bin/